package cn.qn.enums;

/**
 * 是否枚举
 */
public enum ChargerBuildApplyStatusEnum {

    UN_CONTACTED("1","未联系"),
    FOLLOW_UP("2","待跟进"),
    FINISHED("3","处理完成");

    private String code;

    private String desc;

    private String desc2;

    private ChargerBuildApplyStatusEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }


    public static String getDesc(Integer code) {
        for (ChargerBuildApplyStatusEnum enums : ChargerBuildApplyStatusEnum.values()) {
            if (enums.getCode().equals(code)) {
                return enums.getDesc();
            }
        }
        return "未知";
    }
}
